<?php
defined( '_VALID_MOS' ) or die( 'Restricted access' );
// needed to seperate the ISO number from the language file constant _ISO
$iso = explode( '=', _ISO );
// xml prolog
echo '<?xml version="1.0" encoding="'. $iso[1] .'"?' .'>';
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<?php mosShowHead(); ?>
<?php
if ( $my->id ) {
	initEditor();
}
?>
<meta http-equiv="Content-Type" content="text/html; <?php echo _ISO; ?>" />
<link href="<?php echo $mosConfig_live_site;?>/templates/ravalson/css/template_css.css" rel="stylesheet" type="text/css" />
</head>
<body class="body" bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<div id="wrapper" align="center">
	<div id="header">

	</div>
	<div id="page">
		<div id="sidebar">
		<?php mosLoadModules ( 'left'); ?>
		</div>
		<div id="content">
		<?php 
			if($_REQUEST['option'] && $_REQUEST['option'] != 'com_frontpage') {
				mosMainBody();
			} else {
		?>
		<div class="userblock">
				<div class="user1">
					<?php if (!$editmode || (mosCountModules('user2'))): ?>
					<div class="user2">
						<?php mosLoadModules('user2', -2); ?>
					</div>
					<?php endif; ?>
					<?php mosLoadModules('user1', -2); ?>
				</div>

		</div>
		<?php
			}
			?>
		</div>
		<div class="clear">
		</div>
	</div>
	<div id="footer">
		<?php mosLoadModules ( 'footer'); ?>
	</div>
</div>
</body>
</html>
